home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacApp Release 10 / MacApp Release 10 - HD Ready / Examples / Skeleton / MSkeleton.cp next >
Encoding:
Text File  |  1996-04-03  |  1.4 KB  |  52 lines  |  [TEXT/MPS ]

  1. //----------------------------------------------------------------------------------------
  2. // MSkeleton.cp
  3. // Copyright © 1991-96 by Apple Computer, Inc. All rights reserved. 
  4. //----------------------------------------------------------------------------------------
  5.  
  6. // Skeleton
  7.  
  8. #ifndef __UAPPLICATIONSKELETON__
  9. #include "UApplicationSkeleton.h"
  10. #endif
  11.  
  12. #ifndef __UVIEWSKELETON__
  13. #include "UViewSkeleton.h"
  14. #endif
  15.  
  16. // MacApp
  17.  
  18.  
  19. #ifndef __UMACAPPGLOBALS__
  20. #include "UMacAppGlobals.h"
  21. #endif
  22.  
  23. #ifndef __UPRINTING__
  24. #include "UPrinting.h"
  25. #endif
  26.  
  27. // Generate universal code
  28. #pragma processor 68000
  29.  
  30.  
  31. //----------------------------------------------------------------------------------------
  32. // main: 
  33. //----------------------------------------------------------------------------------------
  34. #pragma segment Main
  35.  
  36. void main ()
  37. {
  38.     InitUMacApp(4);                                        // Initialize MacApp with 4 calls to MoreMasters
  39.     InitUPrinting();                                    // Initialize the printing gear
  40.     
  41.     InitUViewSkeleton();                                // Initialize the application's view unit.
  42.  
  43.     TApplicationSkeleton* aApplicationSkeleton = new TApplicationSkeleton;    // Allocate application object
  44.     aApplicationSkeleton->IApplicationSkeleton();        //    Initialize the object
  45.     aApplicationSkeleton->Run();                        //    Well lets run it then!
  46. } // main 
  47.  
  48. //----------------------------------------------------------------------------------------
  49. // End of MSkeleton.cp
  50.  
  51. #pragma segment Inline
  52.